import React, { memo,useState } from 'react';
import { Modal, ModalProps } from 'antd';

type IviewModalProps = Omit<ModalProps,'type'>

const ViewModal: React.FC<IviewModalProps> = (props) => {

    const { children, ...rest } = props;

    return <Modal  {...rest}>
        { children }
    </Modal>
    
}

export default memo(ViewModal);